package com.shrio.dao;

import java.io.Serializable;
import java.util.List;

/**
 * Created by luojie on 2018/3/6.
 */
public interface BaseDao<T,PK extends Serializable> {

    T get(PK id);

    List<T> findAll();

    PK save(T entity);

    void saveOrUpdate(T entity);

    void delete(PK id);

}
